<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<script type="text/javascript">

var socket = new MozWebSocket("ws://localhost:8015/")

socket.onopen = function(event) {
    console.log('onOpen')
    console.log(event)
    socket.send("LOL")
}

socket.onmessage = function(event) {
    console.log('onMessage')
    console.log(event)
}

socket.onclose = function(event) {
    console.log('onClose')
    console.log(event)
}

socket.onerror = function(event) {
    console.log('onError')
    console.log(event)
}

</script>
</body>
</html>
